<?php
namespace app\admin\controller\market;
use app\admin\controller\Controller;
use app\admin\model\wxapp\DistributionSetting;
use app\admin\model\wxapp\WxappSetting;
use think\Db;

class Setting extends Controller
{

    /**
     * 分红设置
     */
    public function bonus(){
        $model=new WxappSetting();
        return $this->fetch('bonus', [
            'list' =>$model->getList($this->request->param()),
            //支付类型
            'bonusList' => $model::getBonusList(),
            //付款状态
            'moneyList'=>$model::getMoneyList(),
        ]);
    }

    /**
     * 分销设置
     */

    public function distribution(){
        $model=new DistributionSetting();
        return $this->fetch('distribution', [
            'list' =>$model->getList($this->request->param()),
            //支付类型
            'bonusList' => $model::getBonusList(),
            //付款状态
            'moneyList'=>$model::getMoneyList(),
        ]);
    }

}